#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
void left_reverse(char arr[])
{
	int len = strlen(arr);
	int i = 0;
	int j = 0;
	int n = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++)
	{
		char strat = arr[0];
		for (j = 0; j < len; j++)
		{
			arr[j] = arr[j + 1];
		}
		arr[len-1] = strat;
	}
}
int main()
{
	char arr[] = "abcdef";
	left_reverse(arr);
	printf("%s\n", arr);
	return 0;
}